package cn.wwk.notification.feign.clients;

import cn.wwk.notification.common.domain.User;
import cn.wwk.notification.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * Feign封装了Ribbon和RestTemplate，实现负载均衡和发送请求
 *
 * @author wwk*/
@FeignClient(value = "notification-user")
public interface UserClient {

    /**
     * 查询所有用户
     * */
    @GetMapping("/user/list")
    Result<List<User>> getAll();
}
